import request from '@/utils/request'

export const getAddressList = () => {
  return request.get('/address/list')
}
export const getAddressDefault = () => {
  return request.get('/address/default')
}
export const addAddress = (form) => {
  return request.post('/address/add', {
    form
  })
}
export const removeAddress = (addressId) => {
  return request.post('/address/remove', {
    addressId
  })
}
export const getDefaultAddress = () => {
  return request.get('/address/default')
}
export const setDefaultAddress = (addressId) => {
  return request.post('/address/default', {
    addressId
  })
}
